import { request } from '@/service/request';

/**
 * 获取报告摘要
 *
 * @param range 日期范围，格式为['YYYY-MM-DD', 'YYYY-MM-DD']
 * @returns 报告摘要数据
 */
export function fetchReportSummary(range: [string, string]) {
  return request<{ [key: string]: any }>({
    url: '/api/report/summary',
    method: 'POST',
    data: {
      range
    }
  });
}
